#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <windows.h>
#include"fsm.h"

int main(void)
{
    int num;
    printf("system is running\r\n");
    int usr_time;
    usr_time = GetTickCount();
    while(1)
    {
        num = rand() % 4;
        if(GetTickCount() - usr_time > 50)
        {
            printf("num = %d\r\n",num);
            usr_time = GetTickCount();
            main_fsm_run(num);
            GetTickCount();
        }
    }
    return 0;
}

